import request from '@/utils/request'

export const meInfo = () => {
  return request.post('/admin/me')
}

export const logout = () => {
  return request.post('/admin/logout')
}

export const login = (Vcode, admin) => {
  return request.post(`/admin/verification/${Vcode}`,admin)
}

export const IsLogin = () => {
  return request.get('/admin/is-login')
}

export const oauth = () => {
  return request.get('/oauth')
}

export const callback = () => {
  return request.get('/oauth/callback')
}

export const who = (name) => {
  return request.post(`/oauth/who/${name}`)
}

